import observer from '@ohos.telephony.observer'

export default class ConditionModel {
  actionRouters: []
  actionTitle: string
  buttons: []
  colSpan: number
  fields: FieldModel[]
  flagAlertCloseWindowAfterSave: boolean
  flagHideSaveLine: boolean
  flagSearch: boolean
  flagShowTitle: boolean
  labelDelimiter: string
  layoutOrientation: number
  list: []
  medias: []
  onload: string
  parameterAction: string
  requiredFieldAlert: string
  scripts: string
  title: string
}


export class FieldModel {
  autoFill: boolean
  autoSearch: boolean
  code1: string
  code2: string
  controlLabel: string
  controlTmpLabe: string
  controlType: number
  displayLabelAfterSelected: boolean
  fieldName1: string
  fieldName2: string
  locked: boolean
  mediaViewPageType: number
  name1: string
  required: boolean
  paramName1: string
  searchDataType: number
  searchOperation: number
  spanCols: number
  width: number
  //--
  defaultCode1: string
  defaultName1: string
  applyBrowse: number
  applyEdit: number
  applyNew: number
  decimals1: number
  decimals2: number
  decimals3: number
  decimals4: number
  groupExpand: boolean
  name2: string
  preLabel1: string
  rows: number
  singleLine: boolean
  sufLabel1: string
  //--
  maxValue1: string
  minValue1: string
  maxValue2: string
  minValue2: string
  maxValue3: string
  minValue4: string
}

export class ConditionItemModel {
  code: string
  flagDeleted: boolean | string
  locked: boolean
  name: string
}

